<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c"  uri="http://java.sun.com/jsp/jstl/core" %>
<h2>강의시간표</h2>
 	<table id="output" width="550" border="1" cellpadding="0" cellspacing="0">
 		<tr>
 			<td width="50" height="50"> </td>
  			<td bgcolor="lightgray" width="100" align="center">월</td>
 			<td bgcolor="lightgray" width="100" align="center">화</td>
 			<td bgcolor="lightgray" width="100" align="center">수</td>
 			<td bgcolor="lightgray" width="100" align="center">목</td>
 			<td bgcolor="lightgray" width="100" align="center">금</td>
		</tr>
		
<c:forEach var="i" begin="1" end="10">
		<tr>
			<td width="50" height="50" align="center">${i}교시</td>
			<td>
				<c:forEach var="list" items="${scheduleList }">
 				    <c:if test="${list.day1=='1'}">
				    <c:if test="${list.time1_1==i }">${list.name }<br><font size="1">(${list.room_name })</font></c:if>	
					<c:if test="${list.time1_2==i }">${list.name }<br><font size="1">(${list.room_name })</font></c:if>
					<c:if test="${list.time1_3==i }">${list.name }<br><font size="1">(${list.room_name })</font></c:if>
					<c:if test="${list.time1_4==i }">${list.name }<br><font size="1">(${list.room_name })</font></c:if>
					</c:if>
				</c:forEach>	
			</td>
			<td>
				<c:forEach var="list" items="${scheduleList }">
 					<c:if test="${list.day1=='2'}">
					<c:if test="${list.time1_1==i }">${list.name }<br><font size="1">(${list.room_name })</font></c:if>	
					<c:if test="${list.time1_2==i }">${list.name }<br><font size="1">(${list.room_name })</font></c:if>
					<c:if test="${list.time1_3==i }">${list.name }<br><font size="1">(${list.room_name })</font></c:if>
					<c:if test="${list.time1_4==i }">${list.name }<br><font size="1">(${list.room_name })</font></c:if>
					</c:if>
					<c:if test="${list.day2=='2'}">
					<c:if test="${list.time2_1==i }">${list.name }<br><font size="1">(${list.room_name })</font></c:if>	
					<c:if test="${list.time2_2==i }">${list.name }<br><font size="1">(${list.room_name })</font></c:if>
					<c:if test="${list.time2_3==i }">${list.name }<br><font size="1">(${list.room_name })</font></c:if>
					<c:if test="${list.time2_4==i }">${list.name }<br><font size="1">(${list.room_name })</font></c:if>
					</c:if> 
				</c:forEach>					
			</td>
			<td>
				<c:forEach var="list" items="${scheduleList }">	
	 				<c:if test="${list.day1=='3'}">
					<c:if test="${list.time1_1==i }">${list.name }<br><font size="1">(${list.room_name })</font></c:if>	
					<c:if test="${list.time1_2==i }">${list.name }<br><font size="1">(${list.room_name })</font></c:if>
					<c:if test="${list.time1_3==i }">${list.name }<br><font size="1">(${list.room_name })</font></c:if>
					<c:if test="${list.time1_4==i }">${list.name }<br><font size="1">(${list.room_name })</font></c:if>
					</c:if>
					<c:if test="${list.day2=='3'}">
					<c:if test="${list.time2_1==i }">${list.name }<br><font size="1">(${list.room_name })</font></c:if>	
					<c:if test="${list.time2_2==i }">${list.name }<br><font size="1">(${list.room_name })</font></c:if>
					<c:if test="${list.time2_3==i }">${list.name }<br><font size="1">(${list.room_name })</font></c:if>
					<c:if test="${list.time2_4==i }">${list.name }<br><font size="1">(${list.room_name })</font></c:if>
					</c:if>
				</c:forEach>					 
			</td>
			<td>
				<c:forEach var="list" items="${scheduleList }">	
					<c:if test="${list.day1=='4'}">
					<c:if test="${list.time1_1==i }">${list.name }<br><font size="1">(${list.room_name })</font></c:if>	
					<c:if test="${list.time1_2==i }">${list.name }<br><font size="1">(${list.room_name })</font></c:if>
					<c:if test="${list.time1_3==i }">${list.name }<br><font size="1">(${list.room_name })</font></c:if>
					<c:if test="${list.time1_4==i }">${list.name }<br><font size="1">(${list.room_name })</font></c:if>
					</c:if>
					<c:if test="${list.day2=='4'}">
					<c:if test="${list.time2_1==i }">${list.name }<br><font size="1">(${list.room_name })</font></c:if>	
					<c:if test="${list.time2_2==i }">${list.name }<br><font size="1">(${list.room_name })</font></c:if>
					<c:if test="${list.time2_3==i }">${list.name }<br><font size="1">(${list.room_name })</font></c:if>
					<c:if test="${list.time2_4==i }">${list.name }<br><font size="1">(${list.room_name })</font></c:if>
					</c:if>
				</c:forEach>
			</td>
			<td>
				<c:forEach var="list" items="${scheduleList }">	
					<c:if test="${list.day1=='5'}">
					<c:if test="${list.time1_1==i }">${list.name }<br><font size="1">(${list.room_name })</font></c:if>	
					<c:if test="${list.time1_2==i }">${list.name }<br><font size="1">(${list.room_name })</font></c:if>
					<c:if test="${list.time1_3==i }">${list.name }<br><font size="1">(${list.room_name })</font></c:if>
					<c:if test="${list.time1_4==i }">${list.name }<br><font size="1">(${list.room_name })</font></c:if>
					</c:if>
					<c:if test="${list.day2=='5'}">
					<c:if test="${list.time2_1==i }">${list.name }<br><font size="1">(${list.room_name })</font></c:if>	
					<c:if test="${list.time2_2==i }">${list.name }<br><font size="1">(${list.room_name })</font></c:if>
					<c:if test="${list.time2_3==i }">${list.name }<br><font size="1">(${list.room_name })</font></c:if>
					<c:if test="${list.time2_4==i }">${list.name }<br><font size="1">(${list.room_name })</font></c:if>
					</c:if>
				</c:forEach>					
			</td>
		</tr>
</c:forEach>
 	</table>